package com.bll.imple.employAction;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bll.Action;
import com.dao.EmployDao;

public class DeleteEmployAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		   String lujing = request.getParameter("lujing");
		   String values[]=request.getParameterValues("cbx");
		   //System.out.println(values.length);
		   if (values != null && values.length != 0) {
		   for(int i=0;i<values.length;i++){
			   int id=Integer.parseInt(values[i]);
			   EmployDao dao=new EmployDao();
			   dao.DeleteEmploy(id);
		   }
		   }
		  
		   return lujing;
	}

}
